package jpack.rar;

/**
 * @author Denis Migol
 * 
 */
public final class RarExitCode {
	/**
	 * Don't let anyone instantiate this class.
	 */
	private RarExitCode() {
	}

	/**
	 * Successful operation
	 */
	public static final int SUCCESS = 0;

	/**
	 * Non fatal error(s) occurred
	 */
	public static final int WARNING = 1;

	/**
	 * A fatal error occurred
	 */
	public static final int FATAL_ERROR = 2;

	/**
	 * A CRC error occurred when unpacking
	 */
	public static final int CRC_ERROR = 3;

	/**
	 * Attempt to modify an archive previously locked by the 'k' command
	 */
	public static final int LOCKED_ARCHIVE = 4;

	/**
	 * Write to disk error
	 */
	public static final int WRITE_ERROR = 5;

	/**
	 * Open file error
	 */
	public static final int OPEN_ERROR = 6;

	/**
	 * Command line option error
	 */
	public static final int USER_ERROR = 7;

	/**
	 * Not enough memory for operation
	 */
	public static final int MEMORY_ERROR = 8;

	/**
	 * Create file error
	 */
	public static final int CREATE_ERROR = 9;

	/**
	 * User stopped the process
	 */
	public static final int USER_BREAK = 255;

}
